﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using HigLabo.WindowsAzure.RestService.Extensions;

namespace HigLabo.WindowsAzure.RestService.ServiceManagement
{
    public class StorageServiceKeys
    {
        public static readonly String ElementName = "StorageServiceKeys";

        public String Primary { get; private set; }
        public String Secondary { get; private set; }

        public StorageServiceKeys(XElement xml)
        {
            if (xml == null)
            {
                throw new ArgumentNullException("xml");
            }
            this.Primary = xml.ValueOrEmpty("Primary");
            this.Secondary = xml.ValueOrEmpty("Secondary");
        }
    }
}
